// 资产管理
import Main from '@/components/main'
export const assetManageRouter = [{
  path: '/asset_manage',
  name: 'asset_manage',
  meta: {
    icon: '_iconorder',
    title: '资产管理',
    snMenu: 'asset_manage',
    sn: 'moms:assets:pngenerator|moms:assets:sngenerator|moms:assets:machineview|moms:assets:invoiceview|moms:assets:receiptview'
    // sn: 'moms:assets:machineconfigview|moms:assets:machineconfigexport'
  },
  component: Main,
  children: [
    {
      path: 'makerpn',
      name: 'asset-manage-makerpn',
      meta: {
        title: 'PN生成器',
        snMenu: 'asset-manage-makerpn',
        sn: 'moms:assets:pngenerator'
      },
      component: () => import('@/view/asset/asset-manage/makerpn/index.vue')
    },
    {
      path: 'makersn',
      name: 'makersn',
      meta: {
        title: 'SN生成器',
        snMenu: 'makersn',
        sn: 'moms:assets:sngenerator'
      },
      component: () => import('@/view/asset/asset-manage/makersn/index.vue')
    },
    {
      path: 'product_control',
      name: 'asset_manage_product_control',
      meta: {
        title: '产品管理',
        snMenu: 'asset_manage_product_control',
        sn: 'moms:assets:machineview'
      },
      component: () => import('@/view/asset/asset-manage/product-control/index.vue')
    },
    {
      path: 'product_control/detail/:id',
      name: 'asset_manage_product_control_detail',
      meta: {
        title: '产品管理详情',
        snMenu: 'asset_manage_product_control',
        sn: '',
        hideInMenu: true,
        notCache: true
      },
      component: () => import('@/view/asset/asset-manage/product-control/detail.vue')
    },
    {
      path: 'product_control/edit/:id/:t',
      name: 'asset_manage_product_control_edit',
      meta: {
        title: '产品管理编辑',
        snMenu: 'asset_manage_product_control',
        sn: '',
        hideInMenu: true
      },
      component: () => import('@/view/asset/asset-manage/product-control/edit.vue')
    },
    {
      path: 'product_control/import',
      name: 'product_control_import',
      meta: {
        title: '产品管理导入',
        snMenu: 'product_control',
        hideInMenu: true,
        sn: ''
      },
      component: () => import('@/view/asset/asset-manage/product-control/import.vue')
    },
    {
      path: 'delivery_management',
      name: 'delivery_management',
      meta: {
        title: '发货管理',
        snMenu: 'delivery_management',
        sn: 'moms:assets:invoiceview'
      },
      component: () => import('@/view/asset/delivery-management/index.vue')
    },
    {
      path: 'delivery_create',
      name: 'delivery_create',
      meta: {
        title: '发货信息编辑',
        snMenu: 'delivery_create',
        sn: '',
        hideInMenu: true
      },
      component: () => import('@/view/asset/delivery-management/create.vue')
    },
    {
      path: 'delivery_detail',
      name: 'delivery_detail',
      meta: {
        title: '发货信息详情',
        snMenu: 'delivery_detail',
        sn: 'moms:assets:invoicedetail',
        hideInMenu: true
      },
      component: () => import('@/view/asset/delivery-management/detail.vue')
    },
    {
      path: 'delivery_import',
      name: 'delivery_import',
      meta: {
        title: '批量导入',
        snMenu: 'delivery_import',
        sn: 'moms:assets:invoicedetail',
        hideInMenu: true
      },
      component: () => import('@/view/asset/delivery-management/import.vue')
    },
    {
      path: 'receipt_management',
      name: 'receipt_management',
      meta: {
        title: '收货单管理',
        snMenu: 'receipt_management',
        sn: 'moms:assets:receiptview'
      },
      component: () => import('@/view/asset/receipt-management/list.vue')
    },

    {
      path: 'machine_monitor',
      name: 'asset_machine_monitor',
      meta: {
        title: '机台统一监控',
        snMenu: 'asset_machine_monitor',
        sn: 'moms:assets:pngenerator'
      },
      component: () => import('@/view/asset/asset-manage/machine-monitor/index.vue')
    },
    {
      path: 'machine_monitor/check',
      name: 'asset_machine_monitor_check',
      meta: {
        title: '机台统一监控',
        snMenu: 'asset_machine_monitor_check',
        notCache: true
      },
      component: () => import('@/view/asset/asset-manage/machine-monitor/check.vue')
    },
    {
      path: 'fault_monitor',
      name: 'asset_fault_monitor',
      meta: {
        title: '故障单管理',
        snMenu: 'asset_fault_monitor',
        sn: 'moms:assets:pngenerator'
      },
      component: () => import('@/view/asset/asset-manage/fault-monitor/index.vue')
    },
    {
      path: 'fault_monitor/detail',
      name: 'asset_fault_monitor_detail',
      meta: {
        title: '故障详情',
        snMenu: 'asset_fault_monitor',
        notCache: true
      },
      component: () => import('@/view/asset/asset-manage/fault-monitor/detail.vue')
    },
    {
      path: 'fault_monitor/check',
      name: 'asset_fault_monitor_check',
      meta: {
        title: '故障单审核',
        snMenu: 'asset_fault_monitor',
        notCache: true
      },
      component: () => import('@/view/asset/asset-manage/fault-monitor/check.vue')
    },
    {
      path: 'maintenance_management',
      name: 'maintenance_management',
      meta: {
        title: '维修管理',
        snMenu: 'maintenance_management',
        sn: 'moms:assets:invoicedetail'
      },
      component: () => import('@/view/asset/maintenance/list.vue')
    },
    {
      path: 'maintenance_detail',
      name: 'maintenance_detail',
      meta: {
        title: '查看详情',
        snMenu: 'maintenance_detail',
        sn: ''
      },
      component: () => import('@/view/asset/maintenance/detail.vue')
    },
    {
      path: 'maintenance_create',
      name: 'maintenance_create',
      meta: {
        title: '维修管理新增',
        snMenu: 'maintenance_create',
        sn: ''
      },
      component: () => import('@/view/asset/maintenance/create.vue')
    },
    {
      path: 'maintenance_examine',
      name: 'maintenance_examine',
      meta: {
        title: '维修管理新增',
        snMenu: 'maintenance_examine',
        sn: ''
      },
      component: () => import('@/view/asset/maintenance/examine.vue')
    }
  ]
}
]
